<script setup lang="ts">
// 泛型  ----  类型的复用

// in 关键字   类似与循环

type myType4 = 'name' | 'age' | 'sex';
interface Person {
  name: string;
  age: number;
  sex: boolean;
}

type MyTypes5 = {
  [key in keyof Person]: string;
};

// type MyTypes = {
//     [key in myType]: string
// }
</script>

<template>
  <a class="main">123</a>
</template>
